package com.song.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 菜单信息表
 * </p>
 *
 * @author Song
 * @since 2022-12-19
 */
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名字
     */
    private String mname;

    /**
     * 菜单路径
     */
    private String route;

    /**
     * 状态1正常2禁用3逻辑删除
     */
    private Integer state;

    /**
     * 所需权限级别1无需登录2登录可见3高级用户4特殊用户5管理员
     */
    private Integer power2;

    /**
     * 记录人
     */
    private String modifyby;

    /**
     * 记录添加时间
     */
    private LocalDateTime rawAddTime;

    /**
     * 记录更新时间
     */
    private LocalDateTime rawUpdateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getPower2() {
        return power2;
    }

    public void setPower2(Integer power2) {
        this.power2 = power2;
    }

    public String getModifyby() {
        return modifyby;
    }

    public void setModifyby(String modifyby) {
        this.modifyby = modifyby;
    }

    public LocalDateTime getRawAddTime() {
        return rawAddTime;
    }

    public void setRawAddTime(LocalDateTime rawAddTime) {
        this.rawAddTime = rawAddTime;
    }

    public LocalDateTime getRawUpdateTime() {
        return rawUpdateTime;
    }

    public void setRawUpdateTime(LocalDateTime rawUpdateTime) {
        this.rawUpdateTime = rawUpdateTime;
    }

    @Override
    public String toString() {
        return "Menu{" +
        "id=" + id +
        ", mname=" + mname +
        ", route=" + route +
        ", state=" + state +
        ", power2=" + power2 +
        ", modifyby=" + modifyby +
        ", rawAddTime=" + rawAddTime +
        ", rawUpdateTime=" + rawUpdateTime +
        "}";
    }
}
